check-icon-theme: Print the name of the icon-theme
authorMatthias Clasen <mclasen@redhat.com>
Sun, 21 Sep 2014 20:29:48 +0000 (16:29 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 21 Sep 2014 20:34:33 +0000 (16:34 -0400)
testsuite/gtk/check-icon-names.c

index 158ffd259f5e57b0d5b65946b36e5be84495fbef..3916c816881ab51743f1f349d58b5b8ce80e5bb5 100644 (file)
@@ -164,9 +164,14 @@ main (int argc, char *argv[])
 {
   guint i;
   char *test_name;
+  char *theme;
 
   gtk_test_init (&argc, &argv);
 
+  g_object_get (gtk_settings_get_default (), "gtk-icon-theme-name", &theme, NULL);
+  g_test_message ("Testing icon theme: %s", theme);
+  g_free (theme);
+
   for (i = 0; i < G_N_ELEMENTS (icon_names); i++)
     {
       test_name = g_strdup_printf ("/check-icon-names/%s", icon_names[i]);